#ifndef DIA_ADDSTUDENT_H
#define DIA_ADDSTUDENT_H
#include<QPaintEvent>
#include <QDialog>
#include<QPainter>
#include "stusql.h"
namespace Ui {
class Dia_AddStudent;
}

class Dia_AddStudent : public QDialog
{
    Q_OBJECT

public:
    explicit Dia_AddStudent(QWidget *parent = 0);
    ~Dia_AddStudent();
   virtual void paintEvent(QPaintEvent *);
    void setType(bool isAdd,StuInfo info={});
private slots:
    void on_btn_cancel_clicked();

    void on_btn_save_clicked();

private:
    Ui::Dia_AddStudent *ui;
    bool m_isAdd;
    StuInfo m_info;
};

#endif // DIA_ADDSTUDENT_H
